describe('practice-2-1', function () {

    it("求个人所得税", function () {
        var tex = new Tax(1500,4500,0.10);
        expect(tex.start).toBe(1500);
        expect(tex.end).toBe(4500);
        expect(tex.percent).toBe(0.10);

        var result = individual_income_tax(2000);
        console.info('2000缴税:'+result);
        expect(result).toBe(0);

        var result1 = individual_income_tax(9876);
        console.info('9876缴税:'+result1);
        expect(result1).toBe(720.2);

        var result2 = individual_income_tax(90000);
        console.info('90000缴税:'+result2);
        expect(result2).toBe(25420);
    });

});